package com.hhm.pojo;

import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;
import java.util.List;

/**
 * 主表
 * id
 * xid
 * yid
 * zid
 * uid
 * created
 */
@Data
public class Mains {
    private Integer id;
    private Integer xid;//地区id
    private Integer yid;//乡镇id
    private Integer zid;//小区id
    private Integer uid;//用户id
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date created;

    private List<Infos> infos;//从表（多）

    private String xname;
    private String yname;
    private String zname;
    private String username;

    private Integer num;//存储过程 num

}
